package com.learn.prototype.protoyype;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: BcTable </p>
 */
@Setter
@Getter
public class BcTable extends Table {

    private String name;

    public BcTable(String name) {
        this.name = name;
    }

    public BcTable(BcTable bcTable) {
        this.name = bcTable.getName();
    }

    @Override
    public Table copy() throws CloneNotSupportedException {
        return new BcTable(this);
    }
}
